package test.excel.workbook;

import java.util.LinkedHashMap;

public class SheetHeader {
    private LinkedHashMap<String, Integer> colMap = new LinkedHashMap<String, Integer>();

    public void addColHeader(String name, int index) {
        colMap.put(name.trim().toLowerCase(), index);
    }

    public Integer getIndexByName(String name) {
        return colMap.get(name.trim().toLowerCase());
    }

    public int size() {
        return colMap.size();
    }
}
